package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.ReservationCount;
import com.zzyl.entity.Visit;
import com.zzyl.vo.ReservationCountVo;
import com.zzyl.vo.VisitVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @param
 * @return
 */
@Mapper
public interface CustomerReservationMapper {
    //查询取消预约数量
    Long selectCancelCount(Long id);

    //新增预约
    void insertReservation(Visit visit);

    //分页查询预约
    Page<VisitVo> pageReservation(Integer status);

    //取消预约
    void cancelReservation(Integer id);

    //查询每个时间段剩余预约次数
    List<ReservationCountVo> selectCountByTime(ReservationCount reservationCount);
}
